<!DOCTYPE html>
<html lang="{:get_lang()}">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$heading_title|default=''} - {:C('APPLACTION_NAME')}</title>
    <link href="__STATIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="__STATIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="__STATIC__/summernote/summernote.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/style.css">
    <link rel="icon" type="image/png" href="__STATIC__/image/favorite.png">
    <script src="__STATIC__/js/jquery.min.js"></script>
    <script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
    <script src="__STATIC__/summernote/summernote.min.js"></script>
    <script src="__STATIC__/summernote/lang/summernote-{:get_lang('code')}.min.js"></script>
    
    <script src="__STATIC__/confirm/bootbox.min.js"></script>
    <script src="__PUBLIC__/Js/autocomplete.js"></script>
    <script>
    //图片管理地址
    var imageUrl="{:U('Image/index')}";
    //编辑器语言
    var summernote_lang="{:get_lang('code')}";
    $(function(){
      //Confirm 弹出窗本地化语言
      bootbox.addLocale('system',{
        OK:'{:L('text_ok')}',
        CANCEL:'{:L('text_cancel')}',
        CONFIRM:'{:L('text_ok')}'
      });

      
    })  
    
    </script>
    
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="container">
      <header class="navbar navbar-static-top" id="header">
          <div class="navbar-header">
            <a type="button" id="button-menu" class="pull-left"><i class="fa fa-indent fa-lg"></i></a>
            <a class="navbar-brand" title="{:C('APPLACTION_NAME')}" href=""><img src="__STATIC__/image/muthink.png" style="height:35px;"></a>
          </div>          
          <ul class="nav pull-right">
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-home"></i></a>
              <ul class="dropdown-menu dropdown-menu-right">
                <li><a target="_blank" href="./index.php">{:L('text_front')}</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle user-image" data-toggle="dropdown"><img  src="{$guser.small_cover}" /></a>
              <ul class="dropdown-menu dropdown-menu-right">
                <li>
                  <table class="table table-hover">
                    <tr>
                      <td><img src="{$guser.cover}"></td>
                      <td><h4>{$guser.nickname}<br><small>{$guser.username}</small></h4></td>
                    </tr>
                  </table>
                </li>
                <li><a href="{:U('User/self')}">{:L('text_mod_user')}</a></li>
                <li><a href="{:U('Login/logout')}">{:L('text_logout')}</a></li>
              </ul>
            </li>
          </ul>
      </header>
      <block name="sider">
        <div id="column-left">         
            <ul class="" id="menu">
              <foreach name="RootMenu" item="sm">
                <li class="">
                  <a class="{$sm['children']?'parent':''}" title="{$sm['title']}"  <if condition="empty($sm['children'])"> href="{:U($sm['url'])}"</if>><i class="{$sm.icon} fa-fw"></i> <span>{$sm.title}</span></a>
                  <notempty name="sm['children']">
                    <ul>
                      <foreach name="sm['children']" item="child">
                        <li><a class="{$child['children']?'parent':''}" <if condition="empty($child['children'])"> href="{:U($child['url'])}"</if>>{$child.title}</a>
                          <notempty name="child['children']">
                            <ul>
                              <foreach name="child['children']" item="sub">
                                <li class="">
                                  <a href="{:U($sub['url'])}">{$sub.title}</a>
                                </li>
                              </foreach>
                            </ul>
                          </notempty>
                        </li>
                      </foreach>
                    </ul>
                  </notempty>
                </li>
              </foreach>
            </ul>         
        </div>
        </block>
        <div class="warp-content">
          <div class="container-fluid">
            <div class="page-header">
              <div class="pull-right">
                <block name="button">
                  
                </block>
              </div>
              <block name="breadcrumb">
                <h1>{$heading_title|default=''}</h1>
                <ul class="breadcrumb">
                  <foreach name="breadcrumb" item="b">
                    <li><a href="{:U($b['url'])}">{$b.title}</a></li>
                  </foreach>
                </ul>
              </block>
            </div>
            <block name="msg">
              <if condition = "$list_success">
                <div class="alert alert-success alert-dismissible fade in" role="alert">
                      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
                      {$list_success}

                </div>
              </if>
              <if condition = "$list_danger">
                <div class="alert alert-danger alert-dismissible fade in" role="alert">
                      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
                      {$list_danger}
                </div>
              </if>
            </block>
            <block name="body">
            
            </block>
          </div>        
        </div>
      <!--Muthink是一个免费的开源软件，我们希望您保留下面的版权信息，开发不易！-->
      <footer class="footer text-center">
        <hr>
          <a target="_blank" href="http://www.muthink.cn">Muthink</a> &copy;2016-2016  All Rights Reserved.
      </footer>
    </div>
    <script src="__PUBLIC__/Js/common.js"></script>
    <block name="script">       
    </block>
  </body>
</html>